# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
_pgsqlver=16
pkgname=postgresql$_pgsqlver-wal2json
_pkgname=wal2json
pkgver=2.6
pkgrel=0
pkgdesc="PostgreSQL output plugin for logical decoding"
url="https://github.com/eulerto/wal2json"
arch="all"
license="BSD-3-Clause"
options="!check" # no test suite
makedepends="postgresql$_pgsqlver-dev"
source="https://github.com/eulerto/wal2json/archive/refs/tags/${_pkgname}_${pkgver/./_}.tar.gz"
builddir="$srcdir/$_pkgname-${_pkgname}_${pkgver/./_}"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
73c89b1251696fad269019050e1cd479ee114e671714a4aecae12f862fc339b1d30faa44a298da64f972ca028687e0d9e7baaec64b35117bb13702afa8f00ca3  wal2json_2_6.tar.gz
"
